-- GENERATED SPELL FOR [Venomlash Scorpid] --


function spell0_7022(pUnit, Event) --@Venom Sting,n/a--
pUnit:FullCastSpellOnTarget(8257,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7022', 30000, 1)
end

function Sorts_7022(pUnit, Event)
local choix_sorts_7022 = math.random(0, 0)
if choix_sorts_7022 == 0 then
pUnit:RegisterEvent('spell0_7022', 1, 1)
end
end

function mob7022_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7022', math.random(1500, 3000), 1)
end

function mob7022_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7022_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7022_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7022, 1, 'mob7022_Action')
RegisterUnitEvent(7022, 2, 'mob7022_Leave')
RegisterUnitEvent(7022, 3, 'mob7022_Kill')
RegisterUnitEvent(7022, 4, 'mob7022_Die')
